<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>运行时配置</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="yar.installation.html">« 安装</a></li>
      <li style="float: right;"><a href="yar.resources.html">资源类型 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="yar.setup.html">安装/配置</a></li>
    <li>运行时配置</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="yar.configuration" class="section">
 <h2 class="title">运行时配置</h2>
 <p class="simpara">
这些函数的行为受 <var class="filename">php.ini</var> 中的设置影响。
</p>
 <p class="para">
  <table class="doctable table">
   <caption><strong>Yar 配置选项</strong></caption>
   
    <thead>
     <tr>
      <th>名字</th>
      <th>默认</th>
      <th>可修改范围</th>
      <th>更新日志</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td><a href="yar.configuration.html#ini.yar.packager" class="link">yar.packager</a></td>
      <td>php</td>
      <td>PHP_INI_SYSTEM</td>
      <td></td>
     </tr>

     <tr>
      <td><a href="yar.configuration.html#ini.yar.debug" class="link">yar.debug</a></td>
      <td>Off</td>
      <td>PHP_INI_ALL</td>
      <td></td>
     </tr>

     <tr>
      <td><a href="yar.configuration.html#ini.yar.connect-timeout" class="link">yar.connect_timeout</a></td>
      <td>1000</td>
      <td>PHP_INI_ALL</td>
      <td></td>
     </tr>

     <tr>
      <td><a href="yar.configuration.html#ini.yar.timeout" class="link">yar.timeout</a></td>
      <td>5000</td>
      <td>PHP_INI_ALL</td>
      <td></td>
     </tr>

     <tr>
      <td><a href="yar.configuration.html#ini.yar.expose-info" class="link">yar.expose_info</a></td>
      <td>On</td>
      <td>PHP_INI_SYS</td>
      <td></td>
     </tr>

    </tbody>
   
  </table>

 </p>

 <p class="para">这是配置指令的简短说明。</p>

 <p class="para">
  <dl>
   
     <dt id="ini.yar.packager">
      <code class="parameter">yar.packager</code>
      <span class="type">string</span>
     </dt>

     <dd>

      <p class="para">
       设置Yar的打包工具, 可以是PHP(serialize), JSON,
       Msgpack(这个需要编译的时候指定--enable-msgpack).
      </p>
     </dd>

    
    
     <dt id="ini.yar.debug">
      <code class="parameter">yar.debug</code>
      <span class="type">string</span>
     </dt>

     <dd>

      <p class="para">
       打开的时候, Yar会把请求过程的日志都打印出来(到stderr).
      </p>
     </dd>

    
    
     <dt id="ini.yar.connect-timeout">
      <code class="parameter">yar.connect_timeout</code>
      <span class="type">integer</span>
     </dt>

     <dd>

      <p class="para">
       连接超时(毫秒为单位)
      </p>
     </dd>

    
    
     <dt id="ini.yar.timeout">
      <code class="parameter">yar.timeout</code>
      <span class="type">integer</span>
     </dt>

     <dd>

      <p class="para">
       处理超时(毫秒为单位)
      </p>
     </dd>

    
    
     <dt id="ini.yar.expose-info">
      <code class="parameter">yar.expose_info</code>
      <span class="type">bool</span>
     </dt>

     <dd>

      <p class="para">
       如果关闭, 则当通过浏览器访问Server的时候, 不会出现Server Info信息.
      </p>
     </dd>

    

  </dl>

 </p>
</div></div></div></body></html>